/* 获取接口基础参数 */
import { apiConfig } from './env'

export default new class getApiParam {
  constructor() {
  }

  // 获取配置详情
  // apiname env中的接口名称
  getApiParam(apiname){
    let packey = apiConfig[apiname]["packey"];
    let security_code = apiConfig[apiname]["security_code"];
    let platform_id = apiConfig[apiname]["platform_id"];

    return {
      packey,//平台
      security_code,//安全码
      platform_id,//平台
    }
  }
}